import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/cupertino.dart';

import 'package:school_safe_teacher/resourse/app_colors.dart';

class ChangeNickNameState implements Cloneable<ChangeNickNameState> {
  TextEditingController nickNameController;
  String nickName;
  Color loginTextColor;
  Color loginBtnStartColor;
  Color loginBtnEndColor;
  @override
  ChangeNickNameState clone() {
    return ChangeNickNameState()
      ..nickNameController = nickNameController
      ..nickName = nickName
      ..loginTextColor = loginTextColor
      ..loginBtnStartColor = loginBtnStartColor
      ..loginBtnEndColor = loginBtnEndColor;
  }
}

ChangeNickNameState initState(Map<String, dynamic> args) {
  TextEditingController controller = TextEditingController();
  return ChangeNickNameState()
    ..nickNameController = controller
    ..nickName = ""
    ..loginTextColor = AppColors.cantClickTextColor
    ..loginBtnStartColor = AppColors.loginBtnColor
    ..loginBtnEndColor = AppColors.loginBtnColor;
}
